package com.ruoyi.ldzlsb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 巡检项对象 sb_inspection_item
 * 
 * @author ruoyi
 * @date 2023-03-15
 */
public class SbInspectionItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 巡检项ID */
    private Long itemId;

    /** 关联的巡检配置ID */
    @Excel(name = "关联的巡检配置ID")
    private Long configId;

    /** 巡检项名称 */
    @Excel(name = "巡检项名称")
    private String itemName;

    /** 巡检标准 */
    @Excel(name = "巡检标准")
    private String itemStandard;

    /** 检查方法 */
    @Excel(name = "检查方法")
    private String checkMethod;

    /** 正常范围 */
    @Excel(name = "正常范围")
    private String normalRange;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 数据类型（0数字 1文本 2选项 3是否） */
    @Excel(name = "数据类型", readConverterExp = "0=数字,1=文本,2=选项,3=是否")
    private String dataType;

    /** 选项值列表（JSON格式） */
    private String optionValues;

    /** 是否必填（0否 1是） */
    @Excel(name = "是否必填", readConverterExp = "0=否,1=是")
    private String isRequired;

    /** 是否需要图片（0否 1是） */
    @Excel(name = "是否需要图片", readConverterExp = "0=否,1=是")
    private String requireImage;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortOrder;

    /** 是否删除（0存在 1删除） */
    private String isDelete;

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }

    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }

    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }

    public void setItemStandard(String itemStandard) 
    {
        this.itemStandard = itemStandard;
    }

    public String getItemStandard() 
    {
        return itemStandard;
    }
    
    public void setCheckMethod(String checkMethod)
    {
        this.checkMethod = checkMethod;
    }
    
    public String getCheckMethod()
    {
        return checkMethod;
    }
    
    public void setNormalRange(String normalRange)
    {
        this.normalRange = normalRange;
    }
    
    public String getNormalRange()
    {
        return normalRange;
    }
    
    public void setUnit(String unit)
    {
        this.unit = unit;
    }
    
    public String getUnit()
    {
        return unit;
    }
    
    public void setDataType(String dataType)
    {
        this.dataType = dataType;
    }
    
    public String getDataType()
    {
        return dataType;
    }
    
    public void setOptionValues(String optionValues)
    {
        this.optionValues = optionValues;
    }
    
    public String getOptionValues()
    {
        return optionValues;
    }
    
    public void setIsRequired(String isRequired)
    {
        this.isRequired = isRequired;
    }
    
    public String getIsRequired()
    {
        return isRequired;
    }

    public void setRequireImage(String requireImage) 
    {
        this.requireImage = requireImage;
    }

    public String getRequireImage() 
    {
        return requireImage;
    }

    public void setSortOrder(Integer sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Integer getSortOrder() 
    {
        return sortOrder;
    }

    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("configId", getConfigId())
            .append("itemName", getItemName())
            .append("itemStandard", getItemStandard())
            .append("checkMethod", getCheckMethod())
            .append("normalRange", getNormalRange())
            .append("unit", getUnit())
            .append("dataType", getDataType())
            .append("optionValues", getOptionValues())
            .append("isRequired", getIsRequired())
            .append("requireImage", getRequireImage())
            .append("sortOrder", getSortOrder())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .append("remark", getRemark())
            .toString();
    }
} 